import { createApp } from 'vue'
import './main.scss'
import App from './App.vue'

import router from './router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import { createPinia } from 'pinia'
import { createPersistedState } from 'pinia-plugin-persistedstate'
import locale from 'element-plus/dist/locale/zh-cn.js'
import * as echarts from 'echarts'
import Echarts from 'vue-echarts'


const app = createApp(App)

app.component('e-charts',Echarts)
app.config.globalProperties.$echarts = echarts
const pinia=createPinia()
const persist =createPersistedState()
pinia.use(persist)
app.use(pinia)
app.use(router)
app.use(ElementPlus,{locale})
app.mount('#app')
